package com.youlai.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.system.model.entity.AirTicket;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @version 1.0
 * @Author Ricardo
 * @Date 2024/10/24 15:05
 * @注释
 */
@Mapper
public interface AirTicketMapper extends BaseMapper<AirTicket> {
    //根据航班id更行票价
    @Transactional
    int updateRateById(long id,float rate);

    List<AirTicket> getAirTicketsById(long id);
}
